


import { Component, OnInit, Injector, TemplateRef, ViewChild, Input } from '@angular/core';
import { NgZorroPageBaseComponent } from '../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component';
import { HttpService } from "../../core/service/http.service";
import { HttpClient } from "@angular/common/http";
import { Router, NavigationExtras } from "@angular/router";
import {
  AndOr, Compare, ExpressionPair, PagedResultDto, PagerSearchInput, ElementViewType, BaseComponentConfig,
  SystemFormControl, FieldType, ElementShowType, CustomNavigation, ClassInfoOutput, NavigatType, ArSystemFormControl, ClassSchool
} from "../..";
import { NzMessageService, NzModalService } from 'ng-zorro-antd';
import { CityListComponent } from '../school/cityList';
import {
  FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators,
  FormControl
} from "@angular/forms";
import { async } from '../../../../node_modules/@types/q';



@Component({
  selector: 'app-feedback',
  templateUrl: './feedback.component.html',
  styleUrls: ['./feedback.component.scss']
})

export class FeedbackComponent extends NgZorroPageBaseComponent implements OnInit {
  cityData;
  provinceData;
  selectedProvince;
  selectedCity;
  schoolName;
  collegelName;
  manalName;
  resultxy;
  resultxymana;
  listEntitiesdata;
  aclear;
  classmana;
  delesh = [];
  disabledButton = true;
  displayData: Array<{ name: string; age: number; address: string; checked: boolean }> = [];
  dataSet = [];
  checkedNumber = 0;
  operating = false;
  smisVisible = false;
  classname;
  editorContent;
  studentstatus = false; // 是否有申请
  usertype;

  // className;
  ngOnInit() {
    this.getEntityList();
    this.IniObserver.subscribe(sb => {

    });

    this.usertype = sessionStorage.getItem('userRoleType'); // 身份
  }
  constructor(
    injecter: Injector,
    public http1: HttpService,
    private modalService: NzModalService,
    public http: HttpClient,
    private model: NzMessageService

  ) {
    super(injecter,


      new BaseComponentConfig(
        "FeedbackInformationService/GetAllInformation",
        "",
        "",
        "",
        "",
        "id",
        "",
        "",
        [],
        "",
        { Edit: false, Dell: false },
      ));
  }

  addFeedback() {
    this.router.navigate(['app/feedIndex/feedadd']);
  }
  delete(id) {
    this.modalService.confirm({
      nzTitle: '确定要删除?',
      nzContent: '点击确定后，将彻底删除反馈信息。',
      nzOnOk: () => {
        const startpar = { "id": id };
        this.http1.post<any>('FeedbackInformationService/DeleteInformation', startpar).then(e => {
          this.getEntityList();
        });

        this.model.success("删除成功");
      },
    });
  }
  getfeedback(id) {

  }
  update(id) {
    this.router.navigate(['app/feedIndex/feededit'], {
      queryParams: {
        feedId: id
      }
    });
    // this.router.navigate(['app/feedIndex/feededit'], { queryParams: { "feedId": id } });
  }
}












